using System;
using bitzhuwei.Compiler;

namespace bitzhuwei.GLSLFormat {
    /// <summary>
    /// Correspond to the Vn node single_type_qualifier in the grammar(GLSL).
    /// </summary>
    internal partial class Vnsingle_type_qualifier : IFullFormat {
        // [137] single_type_qualifier = storage_qualifier ;
        // [138] single_type_qualifier = layout_qualifier ;
        // [139] single_type_qualifier = precision_qualifier ;
        // [140] single_type_qualifier = interpolation_qualifier ;
        // [141] single_type_qualifier = invariant_qualifier ;
        // [142] single_type_qualifier = precise_qualifier ;


        private readonly IFullFormat complex;

        private readonly TokenRange _scope;
        public TokenRange Scope => _scope;
        public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
            context.PrintBlanksAnd(this.complex, preConfig, writer);
        }


        // [137] single_type_qualifier = storage_qualifier ;
        public Vnsingle_type_qualifier(Vnstorage_qualifier r0) {
            this.complex = new complex0(r0);
            this._scope = new TokenRange(r0);
        }
        class complex0 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vnstorage_qualifier r0;
            public complex0(Vnstorage_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }

        // [138] single_type_qualifier = layout_qualifier ;
        public Vnsingle_type_qualifier(Vnlayout_qualifier r0) {
            this.complex = new complex1(r0);
            this._scope = new TokenRange(r0);
        }
        class complex1 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vnlayout_qualifier r0;
            public complex1(Vnlayout_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }

        // [139] single_type_qualifier = precision_qualifier ;
        public Vnsingle_type_qualifier(Vnprecision_qualifier r0) {
            this.complex = new complex2(r0);
            this._scope = new TokenRange(r0);
        }
        class complex2 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vnprecision_qualifier r0;
            public complex2(Vnprecision_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }

        // [140] single_type_qualifier = interpolation_qualifier ;
        public Vnsingle_type_qualifier(Vninterpolation_qualifier r0) {
            this.complex = new complex3(r0);
            this._scope = new TokenRange(r0);
        }
        class complex3 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vninterpolation_qualifier r0;
            public complex3(Vninterpolation_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }

        // [141] single_type_qualifier = invariant_qualifier ;
        public Vnsingle_type_qualifier(Vninvariant_qualifier r0) {
            this.complex = new complex4(r0);
            this._scope = new TokenRange(r0);
        }
        class complex4 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vninvariant_qualifier r0;
            public complex4(Vninvariant_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }

        // [142] single_type_qualifier = precise_qualifier ;
        public Vnsingle_type_qualifier(Vnprecise_qualifier r0) {
            this.complex = new complex5(r0);
            this._scope = new TokenRange(r0);
        }
        class complex5 : IFullFormat {
            private readonly TokenRange _scope;
            public TokenRange Scope => _scope;
            public void FullFormat(BlankConfig? preConfig, TextWriter writer, FormatContext context) {
                context.PrintBlanksAnd(r0, preConfig, writer);
            }
            public readonly Vnprecise_qualifier r0;
            public complex5(Vnprecise_qualifier r0) {
                this.r0 = r0;
                this._scope = new TokenRange(r0);
            }
        }



    }
}
